var tempNavValue = 1;
function ChangeNav2(obj_nav)
{
	alert('test');
	/*
	document.getElementById('nav'+tempNavValue).className ="nav_f";
	document.getElementById('nav'＋obj_nav).className="nav_s";
	tempNavValue = obj_nav;
	*/
}
//


/* logon.htm */ 
function owPosition()
{
	window.moveTo(-9999,-9999);
	var returnValue = window.showModalDialog("modules/common/logonow.htm", "",  "dialogWidth:390px; dialogHeight:290px;status:No; ");
	
	if (returnValue == "close")
	{
		window.close();
	}
	else
	{
		
		window.location.replace ("themes/dfstyle/default.htm");
		window.moveTo(-4,-4);
	}
}

 

/* logonow.htm */
/*
function checkValue()
{
	if (document.all("sltName").value == "0")
	{
		alert("请选择相应用户登录!");
	}
	else
	{
		window.returnValue = document.all("sltName").value;
		SetCookie("userName",window.returnValue);
		window.close();
	}
}
*/

/*commom*/
function Confirm()
{
	var ReturnValue = confirm("你确定要删除该记录吗?");
	if (ReturnValue == true)
		{alert("记录已删除!")}
	else
		{return null}
}

function OpenWin( sURL , sFeatures )
{
	window.open( sURL , null , sFeatures , null)
	//window.open("Sample.htm",null,"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
	//window.open( [sURL] [, sName] [, sFeatures] [, bReplace])
	//sName{_blank; _media; _parent; _search; _self; _top}
	//sFeatures{channelmode; directories; fullscreen; height; left; location; menubar; resizable; scrollbars; status; titlebar; toolbar; top; width} 
}

function ShowWin( sURL , sFeatures )
{
	window.showModalDialog( sURL , null , sFeatures)
	//window.showModalDialog("Sample.htm",null,"dialogHeight:591px;dialogWidth:650px;")
	//window.showModalDialog([sURL] [, vArguments] [, sFeatures])
	//sFeatures{dialogHeight; dialogLeft; dialogTop; dialogWidth; center; dialogHide; edge; help; resizable; scroll; status; unadorned}
}

/* idt */
/*
function OnShow(id,imgid)
{	
	var srcstr = imgid.src;
	var splitstr;
	splitstr=srcstr.split(".gif");
	valuestr=splitstr[0].substring(0,splitstr[0].length-1);

	if(id.style.display!="none")
	{					
		id.style.display="none";	
		imgid.src=valuestr+"c.gif";
	}
	else
	{				
		id.style.display="block";
		imgid.src=valuestr+"o.gif";
		
	}
}
*/
function OnShow2(id,imgid)
{	
	var idtemp = document.getElementById(id).style.display;

	if( idtemp != "none")
	{					
		document.getElementById(id).style.display="none";	
		document.getElementById(imgid).src="../../themes/com/ltb_tle_c.gif";
	}
	else
	{				
		document.getElementById(id).style.display="block";	
		document.getElementById(imgid).src="../../themes/com/ltb_tle_o.gif";
		
	}
}


/* ltb */
function LtbClick(url,target)
{

	var urlstr = window.parent.document.all("ltbfrm").src;
	var values;
	values=urlstr.split("/");
	
	if(target=="_blank"){
		OpenWin("../"+values[1]+"/"+url,"");
	}
	
	else{
		if(url!=""){
		window.parent.document.all("rtmfrm").src="../"+values[1]+"/"+url;
		}
	}
}



/* other */
/*
function autoResize(ifmobj)
{
	
	if(document.all(ifmobj.id).readyState=="complete")
	{
		try
		{
			var sHeight=window.frames[ifmobj.id].document.body.scrollHeight;
			
			if(sHeight<window.document.body.scrollHeight)
			{
				sHeight="100%";
			}
			document.all(ifmobj.id).style.height = sHeight;	
		}
		catch(e)
		{}
	}
	
}
*/

/* ChangeTab */

var intTabID = "tab_1"; 
function ChangeTab(tabID)
{
	for(var i=1;i<=3;i++)
	{
		document.all(intTabID+i).className = "tab_f"+i;
		document.all(tabID.id+i).className = "tab_s"+i;
	}
	document.all(intTabID+"m").style.display = "none";
	document.all(tabID.id+"m").style.display = "block";
	intTabID = tabID.id;
	
}

function fn_browse()
{
document.all("browse").click();
document.all("file").value = document.all("browse").value;        

}


/* 统一视图 */
var tab_v="tab_1";

function changeTAB(TABId)
{

	var ifmSrc;
	
	if(TABId!=tab_v){
	document.all(TABId + "1").className = "unv_rtb_tab_ls";
	document.all(TABId + "2").className = "unv_rtb_tab_ms";
	document.all(TABId + "3").className = "unv_rtb_tab_rs";
	document.all(tab_v + "1").className = "unv_rtb_tab_l";
	document.all(tab_v + "2").className = "unv_rtb_tab_m";
	document.all(tab_v + "3").className = "unv_rtb_tab_r";
	}	
	
	switch(TABId)
			{
				
				case 'tab_1':{
							ifmSrc = "mls_first";		
						  }
						  break;
				case 'tab_2':{
				
				  if(GetCacheUserID==3)
						ifmSrc = "mls_ju";	
						else ifmSrc = "mls_ju2";	
						}
						
							ifmSrc = "mls_ju";	
						 
						  break;
				case 'tab_3':{
							ifmSrc = "mls_fx";		
						  }
						  break;
				case 'tab_4':{
							ifmSrc = "mls_wt";		
						  }
						  break;
				case 'tab_5':{
							ifmSrc = "mls_rz";		
						  }
						  break;
				case 'tab_6':{
							ifmSrc = "mls_zy";
						  }
						  break;
				case 'tab_7':{
							ifmSrc = "mls_bg";
						  }
						  break;
				case 'tab_8':{
						ifmSrc = "mls_wh";
						}
						break;
				case 'tab_9':{
						ifmSrc = "mls_wd";
						}
						break;
				case 'tab_10':{
						ifmSrc = "mls_jx";
						}
						break;
				case 'tab_11':{
				
				       if(GetCacheUserID==2)
						ifmSrc = "mls_lcb";
						else ifmSrc = "mls_lcb2";
						}
						break;
			
			}
	document.all("ifmTABMain").src =ifmSrc+".htm";
	tab_v=TABId;
	
}

var advanshbid=true;
function advanshb(){
	if(advanshbid){
		 document.all("advanshb").style.display="";}
	else {document.all("advanshb").style.display="none";}
	advanshbid=!advanshbid;
	}



